/**
 * TODO
 */
package com.bci.pwtz.service;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dydlzd;

/**
 * TODO
 * 
 * @author ICLNetwork Team
 * @version 3.0
 */
public interface DydlzdService {
    /**
     * 新增Dydlzd
     * TODO
     * @param Dydlzd
     * @return
     * @throws PwtzDatabaseException
     */
     Dydlzd add(Dydlzd dydlzd) throws PwtzDatabaseException;
    /**
     * 删除（根据dydlzdId删除）
     * TODO
     * @param dydlzdId
     * @return
     * @throws PwtzDatabaseException
     */
     int delete(String dydlzdId)throws PwtzDatabaseException , CanNotDeleteException;
    /**
     * 修改Dydlzd
     * TODO
     * @param dydlzdId
     * @return
     * @throws PwtzDatabaseException
     */
     int update(Dydlzd dydlzd) throws PwtzDatabaseException;
    /**
     * 查找Dydlzd对象（根据dydlzdId查找）
     * TODO
     * @param dydlzdId
     * @return
     * @throws PwtzDatabaseException
     */
     Dydlzd load(String dydlzdId) throws PwtzDatabaseException;
    /**
     * 根据时间查询Dydlzd
     * TODO
     * @param devicename
     * @param companyid
     * @param portalType
     * @param beginTime
     * @param endTime
     * @param pageSize
     * @param pageNo
     * @return
     * @throws PwtzDatabaseException
     */
     
     PaginationList<Dydlzd> findDydlzd(String devicename,Long companyid,int portalType,String[] medLineCodes,String cableCode,String beginTime,String endTime,int pageSize, int pageNo)throws PwtzDatabaseException;
    
     PaginationList<Dydlzd> selectDevice(String devicename,String cablecode,Long companyid,int pagesize,int pageno)throws PwtzDatabaseException;

}
